package com.jerry.secondkill.dao;

import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import com.jerry.secondkill.domain.TestData;

@Mapper
public interface TestDataDao {
	
	@Select("select * from t_test_data where id = #{id}")
	public TestData getById(@Param("id")int id	);

	@Insert("insert into t_test_data(id, name)values(#{id}, #{name})")
	public int insert(TestData data);
	
}
